﻿<navigation:Page x:Class="OpalisConsole.Views.Administration.Administration" 
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           xmlns:controlsToolkit="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Toolkit"
           d:DesignWidth="800" d:DesignHeight="480"
           Title="Administration Page" xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk">
    <Grid x:Name="LayoutRoot" MinWidth="0" MaxWidth="1024">
        <Grid.RowDefinitions>
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="Auto" />
            <RowDefinition Height="10" />
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto" />
            <ColumnDefinition Width="600*" />
        </Grid.ColumnDefinitions>
        <Border BorderBrush="Silver" BorderThickness="1" Grid.RowSpan="4" Grid.ColumnSpan="3" Name="border1">
        </Border>
        <TextBlock Grid.ColumnSpan="3" Name="txtLandingHeader" Text="" TextAlignment="Center" FontSize="20" Margin="10,50,10,5" />
        <StackPanel Grid.Row="1" Name="panelLandingNav" Margin="10,10,10,0" Background="#FF484848" Height="Auto" VerticalAlignment="Top">
            <HyperlinkButton x:Name="Link1" Style="{StaticResource LinkStyle}"
                                     NavigateUri="/Administration/UserManagement" TargetName="ContentFrame" Content="User Management" Background="#FF0097FC" MinWidth="78" />
            <HyperlinkButton x:Name="Link2" Style="{StaticResource LinkStyle}"
                                     NavigateUri="/Administration/PendingApproval" TargetName="ContentFrame" Content="Pending Approval" Background="#FF0097FC" MinWidth="78" Foreground="#FF0097FC" />
            <HyperlinkButton x:Name="Link3" Style="{StaticResource LinkStyle}"
                                     NavigateUri="/Administration/UserImpersonation" TargetName="ContentFrame" Content="User Impersonation" Background="#FF0097FC" MinWidth="78" />
        </StackPanel>
        <StackPanel Grid.Row="1" Grid.Column="1" Margin="10">
            <StackPanel Orientation="Horizontal" Margin="0,0,0,20">
                <TextBlock Height="23" HorizontalAlignment="Left" Name="labelFilter" Text="Filter:" Width="100"  />
                <ComboBox Height="23" Name="boxFilterType" Width="120" Margin="20,0,20,0" />
                <TextBox Height="23" HorizontalAlignment="Right" Name="boxFilter" Width="215" TextChanged="boxFilter_TextChanged" />
            </StackPanel>
            <controlsToolkit:BusyIndicator Name="busyIndicatorUserManagement" IsBusy="False">
                <sdk:DataGrid AutoGenerateColumns="False" Name="gridAuthorization" MaxHeight="400" GotFocus="gridAuthorization_GotFocus">
                    <sdk:DataGrid.Columns>
                        <sdk:DataGridTextColumn Binding="{Binding MachineName}" Header="Machine Name" IsReadOnly="True" Width="2*" />
                        <sdk:DataGridTextColumn Binding="{Binding ADSite}" Header="AD Site" IsReadOnly="True" Width="1*" />
                        <sdk:DataGridTextColumn Binding="{Binding DisplayName}" Header="User Name" IsReadOnly="True" Width="2*" />
                        <sdk:DataGridTextColumn Binding="{Binding Status}" Header="Status" IsReadOnly="True" Width="1*" />
                        <sdk:DataGridTextColumn Binding="{Binding LastUpdatedTime}" Header="Last Updated" IsReadOnly="True" Width="1*" />
                        <sdk:DataGridTextColumn Binding="{Binding LastUpdateUser}" Header="Last Update User" IsReadOnly="True" Width="1*" />
                        <sdk:DataGridTextColumn Binding="{Binding EnteredTime}" Header="Entered Time" IsReadOnly="True" Width="1*" />
                    </sdk:DataGrid.Columns>
                </sdk:DataGrid>
            </controlsToolkit:BusyIndicator>
        </StackPanel>
    </Grid>
</navigation:Page>
